package Objetos;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.io.Serializable;
/**
 *
 * @author ARMGARCES
 */
public class Sesion implements Serializable{
    
    private int id;
    private String horaIni;
    private String horaFin;
    private int idUser;
    private String user;
    private String pswd;
    private int codtel;
    /*
     * Para Notificar que el proceso se cumplio correctamente en el servidor
     */
    private int status;
    /**
     * 
     */
    public Sesion(){
        
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }
 
    /**
     * @return the user
     */
    public String getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(String user) {
        this.user = user;
    }

    /**
     * @return the pswd
     */
    public String getPswd() {
        return pswd;
    }

    /**
     * @param pswd the pswd to set
     */
    public void setPswd(String pswd) {
        this.pswd = pswd;
    }

    /**
     * @return the codtel
     */
    public int getCodtel() {
        return codtel;
    }

    /**
     * @param codtel the codtel to set
     */
    public void setCodtel(int codtel) {
        this.codtel = codtel;
    }

    /**
     * @return the status
     */
    public int getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(int status) {
        this.status = status;
    }
   

    /**
     * @return the horaIni
     */
    public String getHoraIni() {
        return horaIni;
    }

    /**
     * @param horaIni the horaIni to set
     */
    public void setHoraIni(String horaIni) {
        this.horaIni = horaIni;
    }

    /**
     * @return the horaFin
     */
    public String getHoraFin() {
        return horaFin;
    }

    /**
     * @param horaFin the horaFin to set
     */
    public void setHoraFin(String horaFin) {
        this.horaFin = horaFin;
    }
   
    /**
     * @return the iduser
     */
    public int getIdUser() {
        return idUser;
    }

    /**
     * @param iduser the iduser to set
     */
    public void setIdUser(int iduser) {
        this.idUser = iduser;
    }
    /**
     * 
     * @return 
     */
    @Override
    public String toString(){
        return id+"/"+horaIni+"/"+horaFin+"/"+idUser+"/"+user+"/"+pswd+"/"+codtel;
    }
    /**
     * 
     * @return 
     */
    public boolean isNull(){
        if(horaIni == null || user ==null || pswd ==null || codtel == 0){
            return true;
        }
        return false;
    }
}
